NDepend.API Documentation
ToMoney(Nullable<TimeSpan>) Method
NDepend.TechnicalDebt Namespace > IDebtFormatter Interface > ToMoney Method : ToMoney(Nullable<TimeSpan>) Method
The duration to evaluate as money
Estimate an amount of money from a duration.
Syntax

Parameters

duration
The duration to evaluate as money

Return Value

A double value that represents an amount of money
Remarks
This IDebtFormatter object has been created from a DebtSettings object.
The amount of money is expressed in this.DebtSettings.DebtSettings.Currency and is computed from the setting this.DebtSettings.DebtSettings.MoneyPerManHour.
The cents are not shown if the amount of money is greater or equals to 50.
If duration is null this method returns null.
Requirements

Target Platforms: Windows 11, 10, 8, 7 and Linux, MacOS with net8.0, net7.0 or net6.0 installed

See Also

Reference

IDebtFormatter Interface
IDebtFormatter Members
Overload List